package compilador;
/**
 * 
 * @author Juan Luis Martinez
 *
 */
public class Token {

	public static final int NULO = -1;
	public static final int ID = 255;
	public static final int ENTERO = 256;
	public static final int BOOLEANO = 257;
	public static final int TIPO = 258;
	public static final int SUMA = 259;
	public static final int RESTA =260 ;
	public static final int MUL =261;
	public static final int DIV =262; 
	public static final int MOD =263; 
	public static final int IGUAL =264; 
	public static final int DISTINTO = 265;
	public static final int MAYORQUE =266 ;
	public static final int MAYORIGUALQUE =267; 
	public static final int MENORQUE =268; 
	public static final int MENORIGUALQUE =269; 
	public static final int NEGACION =270; 
	public static final int AND =271; 
	public static final int OR = 272;
	public static final int PABRE = 273;
	public static final int PCIERRA = 274;
	public static final int COMA = 275;
	public static final int PUNTOYCOMA =276; 
	public static final int ASIGNACION = 277;
	public static final int ASIGNATIPO = 278;
	public static final int RES_INICIO = 279;
	public static final int RES_FIN = 280;
	public static final int RES_ENTERO = 281;
	public static final int RES_BOOLEANO = 282;
	private String lex;
	private int linea;
	
	/**
	 * Para los numeros es el valor numerico, para los identificadores es 
	 * el indice de la entrada en la tabla de simbolos.
	 */
	private int valor;	

	public Token(){
		
	}
	
	public Token(int valor){
		this.valor = valor;		
	}
	
	/**
	 * @return the valor
	 */
	public int getValor() {
		return valor;
	}

	/**
	 * @param valor the valor to set
	 */
	public void setValor(int valor) {
		this.valor = valor;
	}

	public String getLex() {
		return lex;
	}

	public void setLex(String lex) {
		this.lex = lex;
	}

	public int getLinea() {
		return linea;
	}

	public void setLinea(int linea) {
		this.linea = linea;
	}


}
